import { getListDatas } from "@/api/index.js";

let actions = {
    actChangeNum(context) {  //提交mutations中定义的方法，可以进行异步请求
        // context.commit("mutations中定义的方法")
        context.commit("changeNum")
    },
    async actChangeListDatas(context, params) {
        let result = await getListDatas(params)
        console.log(result.data);

        context.commit("changeListDatas", result.data)
    }
}
export default actions